package com.yuxi.Dao.Impl;

import java.io.Serializable;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.yuxi.Dao.InformationOperationRecordDao;
import com.yuxi.Entity.InformationOperationRecord;

@Repository
public class InformationOperationRecordDaoImpl extends BaseDaoImpl<Serializable, Serializable> implements InformationOperationRecordDao {
	private Logger logger=LoggerFactory.getLogger(InformationOperationRecordDaoImpl.class);
	public InformationOperationRecordDaoImpl(){
		super(InformationOperationRecord.class);
	}
	@Override
	public InformationOperationRecord getORecord(Integer iORecordId) {
		// TODO Auto-generated method stub
		return (InformationOperationRecord) super.get(iORecordId);
	}

	@Override
	public InformationOperationRecord addORecord(InformationOperationRecord iORecord) {
		// TODO Auto-generated method stub
		return (InformationOperationRecord) super.addAndReturn(iORecord);
	}

	@Override
	public void deleteiORecord(InformationOperationRecord iORecord) {
		// TODO Auto-generated method stub
		super.delete(iORecord);
	}

	@Override
	public void modifly(InformationOperationRecord iORecord) {
		// TODO Auto-generated method stub
		super.update(iORecord);
	}
	@Override
	public InformationOperationRecord getOperationByUserId(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public List<InformationOperationRecord>  getOperationByInfoId(Integer id) {
		List<InformationOperationRecord> operationRecords=super.find("from InformationOperationRecord where infomationId=?", id);
		return operationRecords;
	}
	

}
